package com.careersersystem.entity;

/**
 * EmployerstuId entity. @author MyEclipse Persistence Tools
 */

public class EmployerstuId implements java.io.Serializable {

	// Fields

	private Employer employer;
	private Student student;
	private Integer jobId;
	private String sfname;
	private String slname;
	private String semail;
	private Integer scv;

	// Constructors

	/** default constructor */
	public EmployerstuId() {
	}

	/** minimal constructor */
	public EmployerstuId(Employer employer, Student student, Integer jobId,
			String sfname, String slname, String semail) {
		this.employer = employer;
		this.student = student;
		this.jobId = jobId;
		this.sfname = sfname;
		this.slname = slname;
		this.semail = semail;
	}

	/** full constructor */
	public EmployerstuId(Employer employer, Student student, Integer jobId,
			String sfname, String slname, String semail, Integer scv) {
		this.employer = employer;
		this.student = student;
		this.jobId = jobId;
		this.sfname = sfname;
		this.slname = slname;
		this.semail = semail;
		this.scv = scv;
	}

	// Property accessors

	public Employer getEmployer() {
		return this.employer;
	}

	public void setEmployer(Employer employer) {
		this.employer = employer;
	}

	public Student getStudent() {
		return this.student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Integer getJobId() {
		return this.jobId;
	}

	public void setJobId(Integer jobId) {
		this.jobId = jobId;
	}

	public String getSfname() {
		return this.sfname;
	}

	public void setSfname(String sfname) {
		this.sfname = sfname;
	}

	public String getSlname() {
		return this.slname;
	}

	public void setSlname(String slname) {
		this.slname = slname;
	}

	public String getSemail() {
		return this.semail;
	}

	public void setSemail(String semail) {
		this.semail = semail;
	}

	public Integer getScv() {
		return this.scv;
	}

	public void setScv(Integer scv) {
		this.scv = scv;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EmployerstuId))
			return false;
		EmployerstuId castOther = (EmployerstuId) other;

		return ((this.getEmployer() == castOther.getEmployer()) || (this
				.getEmployer() != null
				&& castOther.getEmployer() != null && this.getEmployer()
				.equals(castOther.getEmployer())))
				&& ((this.getStudent() == castOther.getStudent()) || (this
						.getStudent() != null
						&& castOther.getStudent() != null && this.getStudent()
						.equals(castOther.getStudent())))
				&& ((this.getJobId() == castOther.getJobId()) || (this
						.getJobId() != null
						&& castOther.getJobId() != null && this.getJobId()
						.equals(castOther.getJobId())))
				&& ((this.getSfname() == castOther.getSfname()) || (this
						.getSfname() != null
						&& castOther.getSfname() != null && this.getSfname()
						.equals(castOther.getSfname())))
				&& ((this.getSlname() == castOther.getSlname()) || (this
						.getSlname() != null
						&& castOther.getSlname() != null && this.getSlname()
						.equals(castOther.getSlname())))
				&& ((this.getSemail() == castOther.getSemail()) || (this
						.getSemail() != null
						&& castOther.getSemail() != null && this.getSemail()
						.equals(castOther.getSemail())))
				&& ((this.getScv() == castOther.getScv()) || (this.getScv() != null
						&& castOther.getScv() != null && this.getScv().equals(
						castOther.getScv())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getEmployer() == null ? 0 : this.getEmployer().hashCode());
		result = 37 * result
				+ (getStudent() == null ? 0 : this.getStudent().hashCode());
		result = 37 * result
				+ (getJobId() == null ? 0 : this.getJobId().hashCode());
		result = 37 * result
				+ (getSfname() == null ? 0 : this.getSfname().hashCode());
		result = 37 * result
				+ (getSlname() == null ? 0 : this.getSlname().hashCode());
		result = 37 * result
				+ (getSemail() == null ? 0 : this.getSemail().hashCode());
		result = 37 * result
				+ (getScv() == null ? 0 : this.getScv().hashCode());
		return result;
	}

}